
$(function () {



	if ($('#msg').val()!=''){
		showInfo($('#msg').val());
	}
	
	

});
function writevalue(book) {
	$('#findISBN').attr('placeholder',book.isbn)
	$('#findBookName').attr('placeholder',book.bookName);
	$('#findBookType').attr('placeholder',book.bookType.typeName);
	$('#findAutho').attr('placeholder',book.autho);
	$('#findPress').attr('placeholder',book.press);
	$('#findNum').attr('placeholder',book.num);
	$('#findCurrentNum').attr('placeholder',book.currentNum);
	$('#findPrice').attr('placeholder',book.price);
	$('#findAdmin').attr('placeholder',book.admin.name);
	$('#findDescription').attr('placeholder',book.description);
}

function writevalue1(id) {
	$('#addbookId').attr('value',id)
}

function showInfo(msg) {
    $("#div_info").text(msg);
    $("#modal_info").modal('show');
}


